// var OSS = require('ali-oss');
import OSS from "ali-oss";
export function client(){
var client = new OSS({
endpoint: 'oss-cn-beijing.aliyuncs.com/',//填写Bucket所在地域
accessKeyId: 'LTAI5tLV7yPbhK1YdPbVEgT9',
accessKeySecret: 'aNPxYWTV4ryk3b8wn0PL22IkX4d5Oy',
bucket: 'sc240701',// 填写Bucket名称。
})  
//后端提供数据 
return client;
}
/*** 生成随机uuid*/
export function getFileNameUUID () {
function rx() {
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1)
}
return `${+new Date()}_${rx()}${rx()}`
}